# 1. 求解1-100中能被3整除的所有数字的和
# 2.
result = 0
i = 1
while i <= 100:

    if i % 3 == 0:
        result += i
    i += 1

print(result)
